import { postAxios, getAxios, postDownloadAxios } from '@/lib/http';

export const paymentApi = {
    // 添加 @author mrmf
    addPayment: (data) => {
        return postAxios('/payment/add', data);
    },
    // 分页查询 @author mrmf
    queryPayment: (data) => {
        return postAxios('/payment/page/query', data);
    },
    // 批量删除 @author mrmf
    batchDeletePayment: (idList) => {
        return postAxios('/payment/deleteByIds', idList);
    },
    // 修改  @author mrmf
    updatePayment: (data) => {
        return postAxios('/payment/update',data);
    },
    // 导出全部  @author mrmf
    exportAll:(data)=>{
        return postDownloadAxios('/payment/export/all',data);
    },
    // 批量导出  @author mrmf
    batchExport: (idList) => {
        return postDownloadAxios('/payment/export/batch', idList);
    },
};
